package com.tedu.egmybatis2.mapper;

import com.tedu.egmybatis2.pojo.Product;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper {
    int insertProduct(Product record);

    Product selectProductById(int id);

    int deleteProductById(int id);

    List<Product> selectAllProduct();


}
